<div class="window task-list" style="min-height: 400px;">
	<div class="title">
		<?php if (!empty($current_project)) : ?>
			<?php echo $current_project['Project']['name']; ?> - Tasks
			<?php if ($current_user['User']['role'] != 'spectator') : ?>
				- <a href="/tasks/add">New task</a>
			<?php endif; ?>
		<?php else : ?>
			Not selected project - Tasks
		<?php endif; ?>
	</div>
	<div class="content">
		<?php if (empty($current_project)) : ?>
			<table style="width: 100%;">
				<tr><td>Select the project in the left panel</td></tr>
			</table>
		<?php else : ?>
			<?php echo $form->create('Filter', array('url' => $this->here, 'id' => 'FilterIndexForm')); ?>
			<table style="width: 100%; position: relative; top: -27px;">
				<?php echo $this->element('tasks', array('performer_column' => true)); ?>
			</table>
			<?php echo $form->end(); ?>
		<?php endif; ?>
		
	</div>
</div>